package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName wallet_record
 */
@TableName(value ="wallet_record")
@Data
public class WalletRecord implements Serializable {
    /**
     * 钱包id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 钱包id
     */
    @TableField(value = "wallet_id")
    private Long walletId;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新日期
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 类型 ："充值"、"支付"
     */
    @TableField(value = "type")
    private String type;

    /**
     * 订单号
     */
    @TableField(value = "order_num")
    private String orderNum;

    /**
     * 金额(支付、充值)
     */
    @TableField(value = "money")
    private Double money;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 商品图片
     */
    @TableField(value = "goods_picture")
    private String goodsPicture;

    /**
     * 商品数量
     */
    @TableField(value = "goods_number")
    private Long goodsNumber;

    /**
     * 余额
     */
    @TableField(value = "total_money")
    private Double totalMoney;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}